package com.neusoft.nepm.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.neusoft.common.domain.City;
import com.neusoft.common.domain.Province;
import com.neusoft.nepm.mapper.CityMapper;
import com.neusoft.nepm.service.CityService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CityServiceImp extends ServiceImpl<CityMapper, City> implements CityService {
    @Resource
    private CityMapper cityMapper;
    @Override
    public List<City> query(int id) {
        return cityMapper.query(id);
    }

    @Override
    public List<City> queryNot(int id, int cid) {
        return cityMapper.queryNot(id,cid);
    }

    @Override
    public List<City> listAll() {
        return cityMapper.listAll();
    }

    @Override
    public Province find(int id) {
        return cityMapper.find(id);
    }

    @Override
    public List<Province> getList() {
        return cityMapper.provinceList();
    }

    @Override
    public City findCity(int id) {
        return cityMapper.findCity(id);
    }

    @Override
    public List<Province> getExceptProvince(int id) {
        return cityMapper.findProvinceEx(id);
    }
}
